﻿<?php
  include("inc/global.inc");
	$get_url=$_SERVER['HTTP_HOST'];
	$m_url=explode(".","$get_url");
	$m_url1=$m_url[0];
	$m_url2=$m_url[1].".".$m_url[2];
if($m_url2=="sandib2b.cn"){
   $m_rs=mysql_query("select * from member where m_user='$m_url1'");
   $m_num=mysql_num_rows($m_rs);
   $m_row=mysql_fetch_array($m_rs);
   $member_id=$m_row[id];
   $template=$m_row[template];
 }else{
   echo "<script>location='error.htm';</script>";
 }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if($m_row[catalog_id3]){echo "$m_row[catalog_3]，";}?><?php if($m_row['catalog_id2']){echo "$m_row[catalog_2]，";}?><?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?></title>
<meta name="description" content="<?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?>"/>
<meta name="keywords" content="<?php if($m_row['catalog_id2']){echo "$m_row[catalog_2]，";}?><?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?>" />
<link href="/<?=$_GET[id]?>/css/allcss.css" rel="stylesheet" type="text/css" />
<link href="/css/template.css" rel="stylesheet" type="text/css" />
<link href="/css/top1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/top1.php")?>
<div class="main">
<?php include("inc/top2.php")?>
<div class="ban">
<div class="flash">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="960" height="194">
    <param name="movie" value="/flash/13.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/flash/13.swf" width="960" height="194" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" wmode="transparent"  value="transparent"></embed>
  </object>
</div>
</div>
<div class="path size11"><a href="/">首页</a> >> 公司介绍</div>
<div class="left">
<div class="leftbox1">
<div class="search">
<form name="SearchForm" action="http://www.sandib2b.cn/supply/search.php" method="get" target="_blank">
<label></label>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><input name="subject" type="text" class="searchtxt" value="产品搜索" onFocus="this.value=''"/></td>
    <td><input type="image" class="searchbut" src="/images/scbut.gif" /></td>
  </tr>
</table>
</form>
</div>
</div>
<div class="leftbox1">
<div class="name fontwhite b"><a href="/product-list/1.htm">产品分类</a></div>
<div class="info">
<ul>
<?php 
$l_rs=mysql_query("select * from p_list where member_id=".$m_row['id']);
while($l_row=mysql_fetch_array($l_rs)){
$num=mysql_num_rows(mysql_query("select * from product where p_list_id=".$l_row['id']." and member_id=".$m_row['id']." and p_sh=1"));
?>
<li><a href="/product-group/<?=$l_row[id]?>/1.htm"><?=$l_row[p_cname]?></a> <font class="fontgray">[<?=$num?>]</font> </li>
<?php }mysql_free_result($l_rs);?>
</ul>
</div>
</div>
<?php
$c_rs=mysql_query("select web_list.id,web_list.w_name,web_a_list.web_list_type from web_list inner join web_a_list on (web_list.w_type_id=web_a_list.id) where web_list.member_id=".$m_row['id']." order by web_list.id asc");
while($c_row=mysql_fetch_array($c_rs)){
?>
<div class="leftbox1">
<div class="name fontwhite b"><a href="/custom/<?=$c_row[web_list_type]?>/<?=$c_row[id]?>/1.htm"><?=$c_row[w_name]?></a></div>
</div>
<?php }mysql_free_result($c_rs);?>

<div class="DiamondSupplier"><a href="/certificate.htm"><img src="/<?=$_GET[id]?>/images/diamondsupplier.gif"  width="160" height="142" /></a>
<br />
<br />
此会员已通过钻石认证
  </div>


</div>
<div class="ad"></div>
<div class="right">
<div class="rightbox">
<?php if($m_row[m_banner]){?><img src="http://www.sandib2b.cn/upfile/<?=$m_row['m_banner']?>" border="0" width="262" height="178" class="img" /><?php }?>
<div class="info"><?=unhtml($m_row['c_info'])?></div>
<div class="onl"></div>
</div>
<?php //
 $p_rs=mysql_query("select * from product where member_id=".$member_id." and p_sh=1 order by id desc limit 10");
?>
<div class="rightbox">
<div class="path1"><div class=moreright><A class="size11" href="/product-list/1.htm">更多</A> </div>
<font class="b">最新产品</font></div>
<div class="probox">
  <ul>
  <?php
  while($p_row=mysql_fetch_array($p_rs)){
?>
  <li class="prolist">
    <a href="/product/<?=$p_row['id']?>.htm"><?php if(trim($p_row['picture'])){?><img src="http://www.sandib2b.cn/upfile/<?=$p_row['picture']?>" width="100" height="100" alt="<?=$p_row[p_title]?>" /><?php }else{?><img src="/images/InfoPic.gif" width="100" height="100" alt="<?=$p_row[p_title]?>"/><?php }?></a>
  <dt><a href="product/<?=$p_row['id']?>.htm" title="<?=$p_row[p_title]?>"><?=mb_substr($p_row['p_title'],0,8,'utf-8')?></a></dt>
  </li>
<?php }?>
  </ul>
<div class="onl"></div>
</div>
</div>
<div class="rightbox">
<div class="path1">
<div class="moreright"><A class="size11" href="/contact.htm">更多</A> </div>
 <font class="b">联系方式</font></div>
<div class="profile">
  <table cellspacing="0" cellpadding="0" width="100%" class="tables data" border="0">

    <tr>
      <td width="20%" height="25" align="right">公司名称：</td>
      <td width="80%" height="25">&nbsp;<?=$m_row['m_cname']?></td>
    </tr>
    <tr>
      <td height="25" align="right">公司地址：</td>
      <td height="25">&nbsp;<?=$m_row[m_addre]?></td>
    </tr>
    <?php if($m_row[m_ts_tel]){?><tr>
      <td height="25" align="right">免费电话：</td>
      <td height="25">&nbsp;<b class="tel400 fontred"><?=$m_row[m_ts_tel]?></b></td>
    </tr><?php }?>
    <tr>
      <td height="25" align="right">公司电话：</td>
      <td height="25">&nbsp;<?=$m_row[m_tel]?></td>
    </tr>
    <tr>
      <td height="25" align="right">手机号码：</td>
      <td height="25">&nbsp;<?=$m_row[m_phone]?></td>
    </tr>
    <tr>
      <td height="25" align="right">传　　真：</td>
      <td height="25">&nbsp;<?=$m_row[m_fax]?></td>
    </tr>
    <tr>
      <td height="25" align="right">邮　　编：</td>
      <td height="25">&nbsp;<?=$m_row[m_zip]?></td>
    </tr>
    <tr>
      <td align="right">公司网址：</td>
      <td height="25">&nbsp;<span class="en"><a href="http://<?=$m_url1?>.sandib2b.cn">http://<?=$m_url1?>.sandib2b.cn</a></span></td>
    </tr>
    <tr>
      <td height="25" colspan="2"><table width="100%" height="97" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center"><a href="/sentinquery.htm"><img src="/images/msg.gif" width="140" height="45" border="0" /></a></td>
          </tr>
            </table></td>
      </tr>
  </table>
  <div class="onl"></div>
</div>
</div></div>
<div class="onl"></div>
</div>
<?php include("inc/foot.php");?>
</body>
</html>
